<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
 		<title></title>
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<jsp:include page="/page/front/include.jsp"></jsp:include>
		<link rel="stylesheet" type="text/css" href="css/front/login.css" />
		<script type="text/javascript" src="js/front/book_search.js"></script>
		
		<link rel="stylesheet" type="text/css" href="lib/calendar/css/picker.css" />
		<link rel="stylesheet" type="text/css" href="lib/calendar/css/jscal2.css" />
		<link rel="stylesheet" type="text/css" href="lib/calendar/css/border-radius.css" />
		<link rel="stylesheet" type="text/css" href="lib/calendar/css/reduce-spacing.css" />
		<script type="text/javascript" src="lib/calendar/js/jscal2.js"></script>
		<script type="text/javascript" src="lib/calendar/js/cn.js"></script>
	</head>
	<body class="login">
		<jsp:include page="/page/front/header.jsp"></jsp:include>
		<div class="body">
			<div class="loginDetail">
				<h3>欢迎您使用高级搜索</h3>
				<div class="top">高级搜索</div>
				<div class="middle">
					<form action="searchBooks.do" method="get">
						<table>
							<tr>
								<th>搜索方式：</th>
								<td>
									<input type="radio" id="isbnRadio" name="searchAccurate" value="true" class="radio" style="margin-left: 0px;" onclick="showIsbn()" />
									<label for="isbnRadio">精确搜索</label>
									<input type="radio" id="conditionRadio" name="searchAccurate" value="false" class="radio" style="margin-left: 50px;" checked="checked" onclick="showCondition()" />
									<label for="conditionRadio">条件搜索</label>
								</td>
							</tr>
							<tr id="isbn" style="display: none;">
								<th>I&ensp;S&ensp;&nbsp;B&ensp;N：</th>
								<td>
									<input type="text" name="isbn" class="formText" />
								</td>
							</tr>
							<tr id="title">
								<th>书籍名称：</th>
								<td>
									<input type="text" name="title" class="formText" />
								</td>
							</tr>
							<tr id="author">
								<th>作&emsp;&emsp;者：</th>
								<td>
									<input type="text" name="author" class="formText" />
								</td>
							</tr>
							<tr id="publisher">
								<th>出&ensp;版&ensp;社：</th>
								<td>
									<input type="text" name="publisher" class="formText" />
								</td>
							</tr>
							<tr id="date">
								<th>出版日期：</th>
								<td>
									<input type="text" id="beginDate" name="beginDate" class="formTextS" readonly="readonly" />
									<div class="picker" id="beginDatePicker"></div>
									<script type="text/javascript">
										Calendar.setup({
											inputField:"beginDate",
											trigger:"beginDatePicker",
											dateFormat:"%Y-%m-%d",
											bottomBar:false,
											weekNumbers:true,
											onSelect:function() { this.hide();verifyDate(); }
										});
									</script>
									-
									<input type="text" id="endDate" name="endDate" class="formTextS" readonly="readonly" />
									<div class="picker" id="endDatePicker"></div>
									<script type="text/javascript">
										Calendar.setup({
											inputField:"endDate",
											trigger:"endDatePicker",
											dateFormat:"%Y-%m-%d",
											bottomBar:false,
											weekNumbers:true,
											onSelect:function() { this.hide();verifyDate(); }
										});
									</script>
								</td>
							</tr>
							<tr id="category">
								<th>书籍分类：</th>
								<td>
									<select name="category" class="select">
										<option value="1">全部图书</option>
										<s:action name="getCategoryOption" executeResult="true" ignoreContextParams="true"></s:action>
									</select>
								</td>
							</tr>
							<tr>
								<th>&nbsp;</th>
								<td>
									<input type="submit" class="submitButton" value="搜索" hidefocus="true" />
									<input type="reset" class="submitButton" value="清空" hidefocus="true" />
								</td>
							</tr>
						</table>
					</form>
				</div>
				<div class="bottom"></div>
			</div>
		</div>
		<jsp:include page="/page/front/footer.jsp"></jsp:include>
	</body>
</html>
